package cz.czu.pef.DataModelling.tests.data;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cz.czu.pef.DataModelling.service.api.*;

@Component
public abstract class BasicData
{
  @Autowired protected AddressService addressService;
  @Autowired protected CompanyService companyService;
  @Autowired protected EmployeeService employeeService;
  @Autowired protected ExternalWorkerService externalWorkerService;
  @Autowired protected PersonService personService;
  @Autowired protected MachineryService machineryService;
  @Autowired protected MachineTypeService machineTypeService;
  @Autowired protected RoleTypeService roleTypeService;
  @Autowired protected TrainingService trainingService;
  @Autowired protected TrainingTypeService trainingTypeService;
  @Autowired protected TrainingTypeForRoleTypeService trainingTypeForRoleTypeService;
  @Autowired protected MedicalExaminationService medicalExaminationService;
  @Autowired protected MedicalExaminationTypeService medicalExaminationTypeService;
  @Autowired protected MedicalExaminationTypeForRoleTypeService medicalExaminationTypeForRoleTypeService;

  public long yearsToSeconds(long years)
  {
      return (long)((double)years * 365.2422 * 24 * 60 * 60);
  }
}
